package com.xu.mybatis.dao;

import com.xu.mybatis.pojo.User;

import java.util.List;

/**
 * Created by xu on 2017/3/8.
 */
public interface Userdao {
    public User findUserById(int id) throws Exception;
    public List<User> findUserByName(String name) throws Exception;
    public void addUser(User user) throws Exception;
    public void updateUser(User user) throws Exception;
    public void deleteUser(int id) throws Exception;

}
